﻿@model BrnMall.Web.Mobile.Models.LoginModel
@{
    Layout = null;
}
<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <title>用户登陆-@{@WorkContext.MallConfig.SiteTitle}触屏版</title>
    @Html.Raw(WorkContext.MallConfig.SEOKeyword)
    @Html.Raw(WorkContext.MallConfig.SEODescription)
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link href="@{@WorkContext.CSSCDN}/mobile/css/base.css" rel="stylesheet" type="text/css">
    <link href="@{@WorkContext.CSSCDN}/mobile/css/account.css" rel="stylesheet" type="text/css">
    <script src="@{@WorkContext.ScriptCDN}/mobile/scripts/utils.js" type="text/javascript"></script>
    <script src="@{@WorkContext.ScriptCDN}/mobile/scripts/common.js" type="text/javascript"></script>
    <script src="@{@WorkContext.ScriptCDN}/mobile/scripts/account.js" type="text/javascript"></script>
    <script type="text/javascript">
            returnUrl = "@Model.ReturnUrl";
            shadowName = "@Model.ShadowName";
    </script>
</head>

<body>
<header>
  <div class="new-header">
    <a href="javascript:pageBack()" class="new-a-back"><span>返回</span></a>
    <h2>用户登陆</h2>
    <a href="javascript:navSH()" class="new-a-brn"><span>BRN键</span></a> 
  </div>
  <div class="new-brn-tab" id="nav" style=" display:none;">
    <div class="new-tbl-type"> 
    <a href="@Url.Action("index", "home")" class="new-tbl-cell"><span class="icon">首页</span><p style="color:#6e6e6e;">首页</p></a> 
    <a href="@Url.Action("list", "category")" class="new-tbl-cell"><span class="icon2 on">分类搜索</span><p style="color:#6e6e6e;" class="on">分类搜索</p></a> 
    <a href="@Url.Action("index", "cart")" class="new-tbl-cell"><span class="icon3">购物车</span><p style="color:#6e6e6e;">购物车</p></a> 
    <a href="@Url.Action("index", "ucenter")" class="new-tbl-cell"><span class="icon4 on">个人中心</span><p style="color:#6e6e6e;" class="on">个人中心</p></a> 
    </div>
  </div>
</header>


<div class="loginTable">
  <form name="loginForm" action="">
    <div class="itmeC"><input type="text" class="text" name="@Model.ShadowName" placeholder="用户名/邮箱/手机" /></div>
    <div class="itmeC"><input type="password" class="text" name="password" placeholder="输入密码" /></div>
    @if (Model.IsVerifyCode)
    {
    <div class="itme"><div class="itmeC"><input type="text" class="text" name="verifyCode" style="width:100px; float:left;" placeholder="请输入验证码" /><img id="verifyImage" src="/mob/tool/verifyimage" onclick="this.src='/mob/tool/verifyimage?time=' + new Date()" style="width:100px; margin:0 10px; float:left; height:40px;" /><a href="javascript:void(0)" onclick="document.getElementById('verifyImage').src='/mob/tool/verifyimage?time=' + new Date()" class="left" style="line-height:40px;">换一张</a></div></div>
    }
    @if (Model.IsRemember)
    {
    <div class="itmeC"><input name="isRemember" type="checkbox" class="checkbox">一个月内免登陆</div>
    }
    <div class="itmeC"><a href="javascript:login()" class="redBt" style="display:block; padding:0; height:38px; width:99%; text-align:center; line-height:38px;">登陆</a></div>
    <div class="table" style="padding-top:10px;">
        <div class="cell" style=" width:50%;"><a href="@Url.Action("register")">免费注册</a></div>
        <div class="cell" style="width:50%; text-align:right;"><a href="@Url.Action("findpwd")">找回密码</a></div>
    </div>
  </form>
<div class="otherLogin table">
<p>其他登陆方式</p>
<div class="table">
    @foreach (PluginInfo info in Model.OAuthPluginList)
    {
        IOAuthPlugin instance = (IOAuthPlugin)info.Instance;
        <a class="cell" href="@Url.Action(instance.LoginAction, instance.LoginController)"><span>@info.FriendlyName</span></a>
    } 
</div>
</div>
</div>


<footer>
<div class="footerTop">
      @if (WorkContext.Uid < 1)
      {
      <div class="left"><a href="@Url.Action("login", "account", new RouteValueDictionary { { "returnUrl", WorkContext.Url } })">登录</a> | <a href="@Url.Action("register", "account")">注册</a></div>
      }
      else
      {
        <div class="left"><a href="@Url.Action("index", "ucenter")">@WorkContext.NickName</a> | <a href="@Url.Action("logout", "account")">退出</a></div>   
      }
    <div class="right"><a href="#top">回到顶部 </a></div>
    <div class="clear"></div>
</div>
<div class="footerCon"><a href="@Url.Action("index", "home")" class="hot">触屏版</a><a href="/">电脑版</a></div>
<div class="copyright" align="center">www.brnmall.com </div>
</footer>
@Html.Raw(WorkContext.MallConfig.Script)
</body>
</html>
